package com.gdones.gpt.bus.activecode.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gdones.gpt.bus.activecode.dto.ActiveCodeDto;
import com.gdones.gpt.bus.activecode.dto.GptActivationCode;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author GaoJingBo
 * @since 2023-06-03
 */
@Mapper
public interface GptActivationCodeMapper extends BaseMapper<GptActivationCode> {

    IPage<ActiveCodeDto> pages(Page<Object> of,@Param("dto") ActiveCodeDto dto);

    List<ActiveCodeDto> myList(@Param("dto") ActiveCodeDto dto);

    ActiveCodeDto getByID(@Param("id") String id);
}
